//
//  ProductImageVC.m
//  SDHuiYuShoping
//
//  Created by luojiao on 2017/5/2.
//  Copyright © 2017年 luojiao. All rights reserved.
//

#import "ProductImageVC.h"

@interface ProductImageVC ()
{
    NSArray *imageArr;
}

@end

@implementation ProductImageVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    imageArr = [[NSArray alloc] initWithObjects:@"detail1",@"detail2", nil];
    self.scrollView.contentSize = CGSizeMake(APP_WIDTH, imageArr.count * 464);
    
    [self creatScrollViewImageView];

}

- (void)creatScrollViewImageView
{
    for (NSInteger i = 0; i < imageArr.count; i++)
    {
        UIImageView *Imageview = [[UIImageView alloc] initWithFrame:CGRectMake(0, 464*i, APP_WIDTH, 464)];
        Imageview.image = [UIImage imageNamed:[imageArr objectAtIndex:i]];
        
        [self.scrollView addSubview:Imageview];
    }
    
}

- (void)didReceiveMemoryWarning {
    
    [super didReceiveMemoryWarning];

}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
